import request from "@/utils/request";
/**
 * 饲喂计划列表
 * @param {*} data
 * @returns
 */
export function API_feedPlanList(params) {
  return request({
    url: "/feedPlan/list",
    method: "get",
    params,
  });
}

/**
 * 饲喂计划新增
 * @returns
 */
export function API_feedPlanCreate(data) {
  return request({
    url: "/feedPlan/create",
    method: "post",
    data,
  });
}

/**
 * 饲喂计划修改
 * @returns
 */
export function API_feedPlanEdit(data) {
  return request({
    url: `/feedPlan/edit/${data.code}`,
    method: "put",
    data,
  });
}

/**
 * 饲喂计划删除
 * @returns
 */
export function API_feedPlanDelete(data) {
  return request({
    url: `/feedPlan/delete/${data.code}`,
    method: "delete",
  });
}

/**
 * 饲喂计划记录
 * @returns
 */
export function API_feedPlanGet(params) {
  return request({
    url: "/feedPlan/get",
    method: "get",
    params,
  });
}
